﻿@model MobilesStore.Domain.Entities.Search

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_MainLayout.cshtml";
}

<h2>Index</h2>
@using(Html.BeginForm("Index","Search",FormMethod.Post))
{
    
    <div class="box">
        <div class="box-heading">Refine Search</div>
        <div class="box-content">
        <ul class="box-filter">
            <li><span id="filter-group">Price</span>
            <ul>
                @foreach (var option in Model.SearchOptions)
                { 
                    <li>
                        @Html.RadioButtonFor(x => x.SelectedOption, option.Id,new { Name = "radioSearch" })
                        <label for="filter3">@option.Description</label>
                    </li>
                }
            </ul>
            </li>
        </ul>
        <input type="submit" value="Search" class="button">
        </div>
    </div>
}
